package com.b511.swpu.cementbackend.dto.output;

import com.b511.swpu.cementbackend.entity.CM_WorkBaseInfo;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Collection;
import java.util.HashSet;
import java.util.List;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class WellBrowseOutDto {
    private String label;
    private String CM_WorkBaseInfo_ID;
    private Collection<WellBrowseOutDto> children;

    public WellBrowseOutDto(String label) {
        this.label = label;
        this.children = new HashSet<>();
    }

    public WellBrowseOutDto(String label, String CM_WorkBaseInfo_ID) {
        this.label = label;
        this.CM_WorkBaseInfo_ID = CM_WorkBaseInfo_ID;
        this.children=new HashSet<>();
    }
}
